<?php 

require 'hd50/view.php';

/**
* 
*/
class ContorlClass extends View
{
	public $template_dir = 'tpl';

	function __construct(){}

	// 入口函数
	public function index()
	{
		
		// $web = 'houdunwang.com';

		$this->assign('username','小名');

		$this->assign(['web'=>'houdunwangcom','name'=>'baidu']);

		$this->display('index.html');

	}
}

$obj = new ContorlClass();

$obj->index();


 ?>